package com.example.lrhdemo.repository;

import com.example.lrhdemo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @Author lrh
 * @Date 2025/5/21 13:12
 * @Version 1.0
 */
public interface UserRepository extends JpaRepository<User, Long> {

    Optional<User> findByUsername(String username);
}    